<?php
/**
 * Created by JetBrains PhpStorm.
 * User: sam
 * Date: 13-6-18
 * Time: 下午9:50
 * To change this template use File | Settings | File Templates.
 */
class MasterAction extends OauthAction{
    public function _initialize()
    {
        parent::_initialize();
        $this->_mode = D("Master");
    }

    public function _before_index()
    {
        if(IS_AJAX){
            die(json_encode_format($this->_mode->fetch_datagrid()));
        }
    }

    public function form()
    {
        $this->display();
    }

}